package com.cnpinxi.service;

import com.cnpinxi.dao.WeChatPaymentFeedbackMapper;
import com.cnpinxi.domain.WeChatPaymentFeedback;
import com.cnpinxi.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zpc on 2017/2/23.
 */
@Service("weChatPaymentFeedbackService")
public class WeChatPaymentFeedbackServiceImpl implements com.cnpinxi.service.WeChatPaymentFeedbackService {

    @Autowired
    private WeChatPaymentFeedbackMapper weChatPaymentFeedbackMapper;

    @Override
    public void createWeChatPaymentFeedback(WeChatPaymentFeedback weChatPaymentFeedback) {
        weChatPaymentFeedbackMapper.createWeChatPaymentFeedback(weChatPaymentFeedback);
    }

    @Override
    public List<WeChatPaymentFeedback> findWeChatPaymentFeedbackByOutTradeNo(String orderId) {
        return weChatPaymentFeedbackMapper.findWeChatPaymentFeedbackByOutTradeNo(orderId);
    }

}
